<?php

$_this =& $this;

/* @var $_this View */
/* @var $form FormHelper */
/* @var $editForm EditFormHelper */
/* @var $html HtmlHelper */
/* @var $ehtml EHtmlHelper */
/* @var $javascript JavascriptHelper */
/* @var $jqax JqaxHelper */
/* @var $filterBlock FilterBlock */
?><?=$editForm->create($modelName, array('url'=>("/{$url_part}/".($mode == 'create' ? 'new' : $this->data[$modelName][$PKName]).'/'), 'allowInput' => $this->data[$modelName]['__allows']['update'], 'id' => 'createForm'));?><?php

	?><?=$editForm->startSet();?><?php
		?><?=$editForm->field("name", __d($po_domain, 'name', true),
            $form->text("name", array('class' => 'required')).', '.__d($po_domain, 'lat', true).': '.
            $form->text("name_latin", array('class' => 'required')),
        array('required' => true, 'vertical' => false));?><?php
		?><?=$editForm->field("surname", __d($po_domain, 'surname', true),
            $form->text("surname", array('class' => 'required')).', '.__d($po_domain, 'lat', true).': '.
            $form->text("surname_latin", array('class' => 'required')),
        array('required' => true, 'vertical' => false));?><?php
		?><?=$editForm->date("archive_date", __d($po_domain, 'archive_date', true), array('required' => true, 'vertical' => false, 'class' => 'required'));?><?php
	?><?=$editForm->endSet();?><?php
	?><?=$editForm->startSet();?><?php
        ?><?=$editForm->text("email", __d($po_domain, 'email', true), array('vertical' => false, 'class' => "email"));?><?php
		?><?=$editForm->select("sex", __d($po_domain, 'sex', true), $sexes_list, null, array('required' => true, 'vertical' => false), __d(null, 'sex_empty', true));?><?php
		?><?=$editForm->select("education_id", __d($po_domain, 'education', true), $educations_list, null, array('required' => true, 'vertical' => false), __d($po_domain, 'education_empty', true));?><?php
		?><?=$editForm->select("age_id", __d($po_domain, 'age', true), $ages_list, null, array('required' => true, 'vertical' => false), __d($po_domain, 'age_empty', true));?><?php
		?><?=$editForm->select("region_id", __d($po_domain, 'region', true), $regions_list, null, array('required' => true, 'vertical' => false), __d($po_domain, 'region_empty', true));?><?php
		?><?=$editForm->select("position_id", __d($po_domain, 'position', true), $positions_list, null, array('required' => true, 'vertical' => false), __d($po_domain, 'position_empty', true));?><?php
		?><?=$editForm->select("seniority_id", __d($po_domain, 'seniority', true), $seniorities_list, null, array('required' => true, 'vertical' => false), __d($po_domain, 'seniority_empty', true));?><?php
		?><?=$editForm->select("candidate_group_id", __d($po_domain, 'candidate_group', true), $candidate_groups_list, null, array('required' => true, 'vertical' => false), __d($po_domain, 'group_empty', true));?><?php
	?><?=$editForm->endSet();?><?php

	$buttonsHTML = '';
	$buttonsHTML .= (strlen($buttonsHTML) ? ' ' : '').$editForm->back(env("HTTP_REFERER"));
	if ($this->data[$modelName]['__allows']['update']) {
	   $buttonsHTML .= (strlen($buttonsHTML) ? ' ' : '').$editForm->submit(__d(null, ($mode == 'create' ? 'create' : 'save'), true), array());
	}
	if (strlen($buttonsHTML)) {
    	?><?=$editForm->cell($buttonsHTML);?><?php
	}

?><?=$editForm->end();?><?php

?>
